package com.patterns.templateMethod.hummerModle1;

/**
 * Created by Xiao Yiyun on 2017/4/19.
 */
public abstract class HummerModel {

    public abstract void start();   //启动
    public abstract void stop();    //停止
    public abstract void alarm();   //鸣笛
    public abstract void engine();  //引擎

    /*调度方法*/
    public void run() {
        this.start();
        this.engine();
        this.alarm();
        this.stop();
    }
}